package cn.stylefeng.guns.utils;

import cn.stylefeng.roses.kernel.model.exception.ServiceException;

public class ServiceAssert {

    public static void assetTrue(boolean cond, String errorMsg) {
        if (!cond) {
            throw new ServiceException(400, errorMsg);
        }
    }

    public static void assetFalse(boolean cond, String errorMsg) {
        if (cond) {
            throw new ServiceException(400, errorMsg);
        }
    }

}
